#!/usr/bin/node

const cp = require('child_process');

console.log(`process pid:${process.pid}`);

let child = cp.spawn('cat', ['02-spawn-v1.js']);

//子进程的流连接到父进程的标准输出
child.stdout.pipe(process.stdout);
child.stderr.pipe(process.stderr);

